Limit of S(n) using summation formula and n approaches infinity